<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<% 
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>大连开发区健身中心</title>
		<link type="text/css" rel="stylesheet" href="<%=path %>/admin/styles/default.css" />
		<script type="text/javascript" src="<%=path %>/res/js/jquery.js"></script>
		<script type="text/javascript" src="<%=path %>/res/js/common.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/utils/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="<%=path%>/admin/utils/xheditor/xheditor-zh-cn.min.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/pages/community/js/community.js"></script>
	</head>
	<body>
		<form name="form1" method="post" enctype="multipart/form-data" action="" onsubmit="">
		<input type="hidden" id="message" value="${message}"/>
		<input type="hidden" id="webPath" value="<%=path %>"/>
		<input type="hidden" id="method" value="<s:property value="#request.method"/>"/>
		<input type="hidden" id="communityId" name="communityBean.communityId" value="<s:property value="communityBean.communityId"/>"/>
		<input type="hidden" value="<s:property value="communityBean.communityPhoto"/>" name="communityBean.communityPhoto" />
		<table id="table-data-outter">
			<tr>
				<td>
					<table id="table-data-inner" cellspacing="1">
						<tr id="tr-menu-path">
							<td colspan="5" nowrap="nowrap">
								<fieldset id="f-menu-path">当前位置:&nbsp;中心管理 &gt; 添加下辖社区</fieldset>
								<fieldset id="f-condition-display">
										<img src="<%=path%>/admin/images/main/display_on.gif" onclick="displayCondition(this,'tr-menu-path')" 
											align="bottom" width="17" height="15" alt="隐藏查询条件" /></fieldset>
							</td>
						</tr>
						<tr id="tr-condition">
							<td width="20%" class="field-title">社区名称: </td>
							<td width="30%" class="field-content">
								<input type="text" class="input" style="width:200px;" id="communityName"
								name="communityBean.communityName" value="<s:property value="communityBean.communityName"/>" maxlength="25"/>
								<span class="font_red">*</span>
							</td>
							<td width="20%" class="field-title">社区负责人: </td>
							<td width="30%" class="field-content">
								<input type="text" class="input" style="width:250px;" 
								name="communityBean.communityOwner" value="<s:property value="communityBean.communityOwner"/>" maxlength="10"/>
							</td>
						</tr>
						<tr id="tr-condition">
							<td width="20%" class="field-title">社区电话: </td>
							<td width="30%" class="field-content">
								<input type="text" class="input" style="width:250px;" id="leaderName"
								name="communityBean.communityTel" id="msgTitle" value="<s:property value="communityBean.communityTel"/>" maxlength="15"/>
							</td>
							<td width="20%" class="field-title">社区Email: </td>
							<td width="30%" class="field-content">
								<input type="text" class="input" style="width:250px;" 
								name="communityBean.communityEmail" value="<s:property value="communityBean.communityEmail"/>" maxlength="50"/>
							</td>
						</tr>
						<tr id="tr-condition">
							<td width="15%" class="field-title">社区职责: </td>
							<td width="85%" class="field-content" colspan="3">
								<textarea name="communityBean.communityDuty"
								style="width:250px;"><s:property value="communityBean.communityDuty"/></textarea>
							</td>
						</tr>
						<tr id="tr-condition">
							<td width="15%" class="field-title">社区图片: </td>
							<td width="85%" class="field-content" colspan="3">
								<input type="file" name="fileBean.file" style="width:329px;"/>
								<s:if test='communityBean.communityPhoto != null && communityBean.communityPhoto != ""'>
									<img src="<%=path %><s:property value="communityBean.communityPhoto"/>" alt="" />
								</s:if>
							</td>
						</tr>
					</table>
					<div id="div-button" align="center">
						<input type="button" value="保　存" onclick="saveCommunity()"/>
					</div>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>